home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1999 February
/
EnigmA AMIGA RUN 34 (1999)(G.R. Edizioni)(IT)[!][issue 1999-02].iso
/
earcd
/
-recent3
/
storm_flexcat.lha
/
Storm_FlexCat
/
C_c.sd
next >
Wrap
Text File
|
1999-02-18
|
1KB
|
64 lines
##stringtype C
##shortstrings
/****************************************************************
This file was created automatically by `%fv'
from "%f0".
Do NOT edit by hand!
****************************************************************/
/* Include files */
#include <proto/locale.h>
#include "%b_Cat.h"
/* Variables */
struct FC_String %b_Strings[] =
{
{ %s, %d },
{ NULL, 0 }
};
static struct Catalog *%bCatalog;
void Open%bCatalog()
{
if (LocaleBase)
{
if (%bCatalog = OpenCatalog(NULL, "%b.catalog",
OC_BuiltInLanguage, %l,
OC_Version, %v,
TAG_DONE
)
)
{
struct FC_String *fc;
for (fc = %b_Strings; fc->Str; fc++)
{
fc->Str = GetCatalogStr(%bCatalog, fc->Id, fc->Str);
}
}
}
}
void Close%bCatalog()
{
if (%bCatalog)
{
CloseCatalog(%bCatalog);
}
}
void LocalizeStringArray(STRPTR *Array)
{
STRPTR *x;
for (x = Array; *x; x++)
{
*x = %b_Strings[(int)*x].Str;
}
}